<script setup>
import AppItem from './components/AppItem.vue';

import { ref } from "vue"; 

let student = ref({
    name: '小李',
    age: 33,
    gender: '女'
})

const updateName = (palyload) => {
    student.value.name = palyload;
}
</script>

<template>
    <div>
        <AppItem :student="student" @update:student="updateName"></AppItem>
    </div>
</template>


